package cCommon

const (
	XIndex_TraceId       = "x-trace-id"
	XIndex_QueryData     = "x-query-data"
	XIndex_RequestType   = "x-request-type"
	XIndex_RequestMethod = "x-request-method"
	XIndex_RequestURI    = "x-request-uri"
	XIndex_RequestData   = "x-request-data"
	XIndex_ResponseCode  = "x-response-code"
	XIndex_ResponseData  = "x-response-data"
	XIndex_ResponseError = "x-response-error"
	XIndex_LogLevel      = "x-log-level"
)

const (
	Header_Rpc_App         = "Rpc-App"
	Header_Rpc_Service     = "Rpc-Service"
	Header_Rpc_Method      = "Rpc-Method"
	Header_Rpc_Sign        = "Rpc-Sign"
	Header_Rpc_Context     = "Rpc-Context"
	Header_Rpc_NoSignature = "Rpc-No-Signature"

	Header_ContentType   = "Content-Type"
	Header_Authorization = "Authorization"
)

const (
	HTTPStreamEnd = "[DONE]"
)

const (
	GRPC_Context  = "grpc-context"
	GRPC_Metadata = "grpc-metadata"
)

const (
	Context_GormDBTransaction  = "gorm.db.transaction"
	Context_MongoDBTransaction = "mongo.db.transaction"
)

var GRPC_Ignore_Keys = []string{
	XIndex_QueryData,
	XIndex_RequestType,
	XIndex_RequestMethod,
	XIndex_RequestURI,
	XIndex_RequestData,
	XIndex_ResponseCode,
	XIndex_ResponseData,
	XIndex_ResponseError,
	GRPC_Context,
	GRPC_Metadata,
}
